package com.gnerv.battle.boot.module.base.business;

import com.gnerv.battle.boot.module.base.model.dto.DictCreateDTO;
import com.gnerv.battle.boot.module.base.model.dto.DictDTO;
import com.gnerv.battle.boot.module.base.model.dto.DictDetailsDTO;
import com.gnerv.battle.boot.module.base.model.dto.DictUpdateDTO;
import com.gnerv.battle.boot.common.base.model.RestResult;

import java.util.List;

/**
 * @author ligen
 * @description 管理-账户业务操作
 * @createDate 2023-06-08 20:23:32
 */
public interface DictBusiness {

    RestResult<Void> create(DictCreateDTO dictCreateDTO);

    RestResult<Void> deleteByUkId(String ukId);

    RestResult<Void> updateByUkId(DictUpdateDTO dictUpdateDTO);

    RestResult<DictDTO> selectByUkId(String ukId);

    RestResult<DictDetailsDTO> selectDetailsByCode(String code);

    RestResult<List<DictDTO>> listByName(String name);

    RestResult<List<DictDetailsDTO>> listDetailsByName(String name);
}
